<template>
  <div class="mui-numbox" data-numbox-min="1" data-numbox-max="9" data-numbox-step="1" style="height:25px;">
    <button class="mui-btn mui-btn-numbox-minus" type="button" disabled>-</button>
    <input
      id="test"
      class="mui-input-numbox"
      type="number"
      value="1"
      @change="countChange"
      ref="numbox"
    >
    <button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
  </div>
</template>
<script>
import mui from "../../lib/mui/js/mui.min.js";
export default {
  mounted() {
    // 初始化数字选择框 官方文档提供的API
    mui(".mui-numbox").numbox();
  },
  methods: {
    countChange() {}
  }
};
</script>
<style lang="scss" scoped>
</style>